#include <stdio.h>
int fn(){
	for(int a=0,b=1;a!=b;){
		printf("输入ab的值使用逗号隔开:");
		scanf("%d,%d",&a,&b);
		if(a>b){
			int t = a;
			a = b;
			b = t; 
		}
		printf("a=%d,b=%d\n",a,b);
	}
	printf("程序终止！");
}

int main(){
	// 调用函数fn
	fn();
	return 0;
}